<div class="shop_left"><!-- 用户组件列表 begin -->
	
   
  <div class="shop_div">
    	
        	<h3>{$shopname}</h3>
            
	<h4><a href="{:U('shop/index/index',array('uid'=>$uid))}" {:getMenuState('index/index')}>全部商品</a></h4>
    <h4><a href="{:U('shop/index/allq',array('uid'=>$uid))}" {:getMenuState('index/allq')}>全部求购</a></h4>
 <php>if($goods['id']){</php>
    <php>if(ACTION_NAME == 'goods'){</php>
    <h4><a href="{:U('shop/index/goods',array('uid'=>$uid,'gid'=>$goods['id']))}" class="on">商品详情</a></h4>
    <php>}else{</php>
    <h4><a href="{:U('shop/index/qgoods',array('uid'=>$uid,'gid'=>$goods['id']))}" class="on">求购详情</a></h4>
    <php>}</php>
 <php>}</php>
  	
  </div>
    <div class="shop_div">
    <h3>联系我</h3>
     <li class="right"><a href="javascript:void(0)" onclick="ui.sendmessage({$uid})">发私信</a> &nbsp;&nbsp;</li>
    <li><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin={$shopfile['qq']}&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:{$shopfile['qq']}:46" alt="点击这里给我发消息" title="点击这里给我发消息"></a></li>
    
    </div>
    <div class="shop_div">
    <h3>搜索本店</h3>
   <php>if(ACTION_NAME == 'index' || ACTION_NAME == 'goods'){</php>
    <form action="{:U('shop/index/index',array('uid'=>$uid))}" id="quick_search_form" method="post">
    <div class="so"><label id="_header_search_label" style="display: block;" onclick="$(this).hide();$('#_header_search_text').focus();">搜商品</label><input type="text" class="so_text" value="" name="k" id="_header_search_text" onblur="if($(this).val()=='') $('#_header_search_label').show();"/><input name="" type="button" onclick="$('#quick_search_form').submit()" class="so_btn hand br3"/></div>
    </form>
    <php>}else{</php>
    <form action="{:U('shop/index/index',array('uid'=>$uid))}" id="quick_search_form" method="post">
    <div class="so"><label id="_header_search_label" style="display: block;" onclick="$(this).hide();$('#_header_search_text').focus();">搜求购</label><input type="text" class="so_text" value="" name="k" id="_header_search_text" onblur="if($(this).val()=='') $('#_header_search_label').show();"/><input name="" type="button" onclick="$('#quick_search_form').submit()" class="so_btn hand br3"/></div>
    </form>
    <php>}</php>
	<script>
	if($('#_header_search_text').val()=='')
		$('#_header_search_label').show();
	else
		$('#_header_search_label').hide();
	</script>
</div>
    
    <div class="shop_div">
    <h3>网摊资料</h3>
    <ul>
    <li>联系电话：<php>if($mid){</php>{$shopfile['tlphone']}<php>}else{</php>登陆后可显示<php>}</php></li>
    
    <li>所在地区：{$shopfile['location']}</li>
    
     <li>所在学校：{$shopfile['school']}</li>
     </ul>
    </div>
    
	
	</div><!-- 用户组件列表 end -->
<php>
function getMenuState($type){
	$type = split('/',$type);
	if( strtolower(MODULE_NAME)==strtolower($type[0]) && ( strtolower(ACTION_NAME)==strtolower($type[1]) || $type[1]=='*') ){
		return 'class="on"';
	}
}
</php>